<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>
        /*
            循环嵌套
        */
        for(var i=1;i<=6;i++)
        {
            for(var j=0;j<=i-1;j++)
            {
                document.write("* &nbsp;&nbsp;")
            }
            document.write("<br/>")
        }
      
        for(var i=1;i<=6;i++)
        {
            for(var j=i;j<=6;j++)
            {
                document.write("* &nbsp;&nbsp;")
            }
            document.write("<br/>")
        }

        

        for(var i=1;i<=9;i++)
        {
            for(var j=1;j<=i;j++)
            {
                var re=j*i
                document.write(i+"x"+j+"="+re+"&nbsp;&nbsp")
            }
            document.write("<br/>")
        }

        


    </script>
</head>
<body>
    
</body>
</html>